﻿@model OnlinePharmacyV001.Models.Category
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<h2>
    Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Category</legend>
        @Html.HiddenFor(model => model.CateId)
        <div class="editor-label">
            @Html.LabelFor(model => model.CateName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CateName)
            @Html.ValidationMessageFor(model => model.CateName)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
